import Vue from 'vue'
import Vuex from 'vuex'


Vue.use(Vuex);


const State = {
	testName: 'litest',
	testCount: 10

}

const Mutations = {
	increment(state, payload){
		state.testCount += payload.num

	}

}

const Getters = {
	add(state) {
		return state.testCount + 10
	}

}

const StoreConfig = {
	state: State,
	mutations: Mutations,
	getters: Getters
}


const store = new Vuex.Store( StoreConfig );


export default store;